﻿
<div>
    <form name="workFlow_RunCreateOrEditForm" role="form" novalidate class="form-validation">
        <div class="modal-header">
            <h4 class="modal-title">
                <span ng-if="vm.workFlow_Run.id">编辑信息:{{vm.workFlow_Run.name}}</span>
                <span ng-if="!vm.workFlow_Run.id">新增信息</span>
            </h4>
        </div>
        <div class="modal-body">


            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="FlowID" ng-class="{'edited':vm.workFlow_Run.flowID}" ng-model="vm.workFlow_Run.flowID" required />
                <label>流程ID</label>
                <span class="help-block">     @L("FlowID")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="DetailID" ng-class="{'edited':vm.workFlow_Run.detailID}" ng-model="vm.workFlow_Run.detailID" required />
                <label>关联业务实例ID</label>
                <span class="help-block">     @L("DetailID")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="IP" ng-class="{'edited':vm.workFlow_Run.iP}" ng-model="vm.workFlow_Run.iP" maxlength="20" />
                <label>客户端IP</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="Status" ng-class="{'edited':vm.workFlow_Run.status}" ng-model="vm.workFlow_Run.status" />
                <label>流转状态0流转中1已办结</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="CurrentProessID" ng-class="{'edited':vm.workFlow_Run.currentProessID}" ng-model="vm.workFlow_Run.currentProessID" maxlength="50" required />
                <label>当前节点ID</label>
                <span class="help-block">     @L("CurrentProessID")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="CurrentUserID" ng-class="{'edited':vm.workFlow_Run.currentUserID}" ng-model="vm.workFlow_Run.currentUserID" maxlength="50" required />
                <label>当前办理人</label>
                <span class="help-block">     @L("CurrentUserID")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="CurrentStatus" ng-class="{'edited':vm.workFlow_Run.currentStatus}" ng-model="vm.workFlow_Run.currentStatus" required />
                <label>当前办理状态状态0为未接收（默认），1为办理中,2为已转交,3为已结束4为已打回</label>
                <span class="help-block">     @L("CurrentStatus")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="CurrentStatusName" ng-class="{'edited':vm.workFlow_Run.currentStatusName}" ng-model="vm.workFlow_Run.currentStatusName" maxlength="50" required />
                <label>当前状态名称</label>
                <span class="help-block">     @L("CurrentStatusName")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="ResID" ng-class="{'edited':vm.workFlow_Run.resID}" ng-model="vm.workFlow_Run.resID" maxlength="50" />
                <label>资源ID</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="DelTag" ng-class="{'edited':vm.workFlow_Run.delTag}" ng-model="vm.workFlow_Run.delTag" maxlength="1" />
                <label>是否可用</label>
            </div>


        </div>
        <div class="modal-footer">
            <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
            <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="exampleForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
        </div>
    </form>
</div>